package util.components.buttons;

import control.Controlador;
import patterns.Command;

public class JButtonBuscar extends javax.swing.JButton implements Command{

	Controlador control;

	public JButtonBuscar(Controlador c){
		super();
		this.control = c;
	}
	
	public JButtonBuscar(Controlador c, String title){
		super(title);
		this.control = c;
	}

	public void execute() {
		control.buscar();
	}
}
